//
//  LYPictureBrowseViewController.h
//  FollowMe
//
//  Created by liyang on 16/10/12.
//  Copyright © 2016年 FM. All rights reserved.
//

//#import <UIKit/UIKit.h>
#import "QABaseViewController.h"
#import "LYPictureBrowseInteractiveAnimatedTransition.h"
#import "LYPictureBrowseSouceModel.h"


//图片浏览器中图片之间的水平间距
#define kBrowseSpace 0.0f
@class QAMessage;
typedef void(^destroyWhisperImage)(void);

@protocol LYPictureBrowseViewControllerDelegate <NSObject>

/// 相册长按代理方法
/// @param idx 当前位置
/// @param model 当前数据model
/// @param content 当前内容：图片类型则为image 视频则为保存的对应路径
- (void)mo_pictureBrowseDidLongPressAtIndex:(NSInteger)idx withData:(id)model content:(id)content;

@end

//@class LYPictureBrowseSouceModel;

@interface LYPictureBrowseViewController : QABaseViewController

/// idx 当前位置 model 当前数据model  content当前内容：图片类型则为image 视频则为保存的对应路径
@property (nonatomic, copy) void(^ moBrowseLongPressBlock)(id model , id content , NSInteger idx);

@property (nonatomic, strong) LYPictureBrowseInteractiveAnimatedTransition *animatedTransition;

@property (nonatomic, strong) NSArray<LYPictureBrowseSouceModel *> *dataSouceArray;

@property (nonatomic, strong) NSArray *msgArray;

@property (nonatomic,weak) UIViewController *comeController;

@property (nonatomic, assign) BOOL hiddenAllImg;

@property (nonatomic, assign) BOOL isTopMsg;

@property (nonatomic, strong) QAMessage *topMsg;

@property (nonatomic, weak) id <LYPictureBrowseViewControllerDelegate> longPressDelegate;

@property (nonatomic, copy) NSString *countDown;
@property (nonatomic, copy) NSString *totleCountDown;

@property (nonatomic, assign) BOOL hidenShowAllPhoto;

@property  (nonatomic,copy) destroyWhisperImage blockDestroyImage;

///识别二维码
- (void)qrcode;
- (void)qrcodeGo;

@end
